package com.winit.common.base.bean;

import com.winit.common.base.web.BaseController;

public class ExecuteResult<T> {
    private T data;
    private String code = BaseController.REQUEST_SUCCESS;
    private String desc = BaseController.REQUEST_SUCCESS_MSG;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public boolean success(){
        return BaseController.REQUEST_SUCCESS.equalsIgnoreCase(this.code);
    }
}
